Skip to content

fix: stop Firefox Android header flicker on fast scroll-up - #150

Merged
therealsama merged 1 commit into
mainfrom
fix/firefox-android-header-scroll-flicker
Jun 13, 2026
Merged

therealsama merged 1 commit into
mainfrom
fix/firefox-android-header-scroll-flicker

Conversation

@therealsama

@therealsama therealsama commented Jun 13, 2026 •

Copy link
Copy Markdown
Collaborator

The swipe-mode header was position: sticky, which Firefox Android's APZ
flickers during a fast scroll-up. Make the header position: fixed by default, which
APZ pins cleanly, and flip it back to sticky only for the panel swap (where
fixed blinks) via a new is-swiping body class that useSwipeScroll sets from
swipe-lock through commit. The switch is layout-neutral, so this fixes the
scroll-up flicker without reintroducing the mid-swipe blink.

@therealsama
therealsama requested a review from kplachkov as a code owner June 13, 2026 16:30
@therealsama
therealsama force-pushed the fix/firefox-android-header-scroll-flicker branch 2 times, most recently from c80c31f to 1aa7251 Compare June 13, 2026 18:37
@therealsama therealsama changed the title fix: mitigate Firefox Android scroll-up header flicker fix: stop Firefox Android header flicker on fast scroll-up Jun 13, 2026
The swipe-mode header was `position: sticky`, which Firefox Android's APZ
flickers during a fast scroll-up (it re-applies the sticky transform a frame
late — Gecko bug 1585378). Make the header `position: fixed` by default, which
APZ pins cleanly, and flip it back to `sticky` only for the panel swap (where
`fixed` blinks) via a new `is-swiping` body class that useSwipeScroll sets from
swipe-lock through commit. The switch is layout-neutral, so this fixes the
scroll-up flicker without reintroducing the mid-swipe blink.
@therealsama
therealsama force-pushed the fix/firefox-android-header-scroll-flicker branch from 1aa7251 to 1cd02ca Compare June 13, 2026 18:44
@therealsama
therealsama enabled auto-merge June 13, 2026 18:53
@therealsama
therealsama merged commit 18b1dc9 into main Jun 13, 2026
4 checks passed
@therealsama
therealsama deleted the fix/firefox-android-header-scroll-flicker branch June 13, 2026 18:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants